<?php
class Staticizer_Index_Supermarket extends Staticizer
{
    public function Build($param=NULL)
    {
        View::Assign('Products',DB::GetRows(
            'select * from Supply
            where
                M_Supermarket_Is=TRUE
            order by
                M_Supermarket_Top_Is desc,M_Supermarket_Top_DateTime desc,DateTime_LastUpdated desc
			limit 
				0,3'
        ));
        $this->Save('index/supermarket.html',View::Fetch('index/supermarket.tpl'));            
    }
}
?>
